package com.common.api.model;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author ficus
 * 分页模型
 * @param <T>
 */
@Data
public class PageModel<T> implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long total;

    private List<T> result;


    public PageModel(List<T> result, Long total) {
        this.result = result;
        this.total = total;
    }
}